package spring.superrun.record.mvc.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * 更新微信用户个人信息dto
 */
public class WeChatInfoUpdateDto {
    /**
     * 专业名称
     */
    @Length(min = 2,max = 20,message = "专业名称最少两个字")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{0,}$",message = "请输入正确的专业全称")
    private String majorName;
    /**
     * 班级号
     */
    @Length(min = 4,max = 4,message = "班级号最少四个数")
    @Pattern(regexp = "^\\d{4}$",message = "请输入正确的班级号")
    private String classNumber;
    /**
     * 姓名
     */
    @Length(min = 2,max = 10,message = "姓名最少两个字")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{0,}$",message = "请输入正确的姓名")
    private String chineseName;

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public String getClassNumber() {
        return classNumber;
    }

    public void setClassNumber(String classNumber) {
        this.classNumber = classNumber;
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }
}
